//购买页
<template>
	<view style="width: 750rpx; margin: 0 auto;padding: 178rpx 40rpx 0rpx 40rpx;background:url('../../static/image/img_laonianrenzongheyiwaixian@2x.png');background-size: 750rpx 302rpx;background-repeat: no-repeat;">
<!-- 		<image src="../../static/image/img_laonianrenzongheyiwaixian@2x.png"
			style="width:750rpx;height: 302rpx;position: absolute;z-index: -1;"></image> -->
			
		<view class="main">
			<view class="headitem">
				<view class="headitem-title">
					50-80周岁可保 意外风险全面覆盖
				</view>
				<view class="headitem-name">
					老年人综合意外险
				</view>
				<view class="headitem-price">
					<view class="headitem-price-item" style="border-right: #cacaca 1rpx solid;">
						23.6<text style="font-size: 24rpx;color: #4b4b4b;">元/首月</text>
					</view>
					<view class="headitem-price-item">
						23.6<text style="font-size: 24rpx;color: #4b4b4b;">元/首月</text>
					</view>
				</view>
			</view>

			<view class="additem">
				<view>添加投保人</view>
				<view>></view>
			</view>

			<view class="guaranteeitem">
				<view class="guaranteeitem-text">
					<view style="font-size: 36rpx;color: #2a2d32;">
						保障责任
					</view>
					<view style="font-size: 24rpx;color: #bcc3cd;margin-top: auto;margin-bottom: 0rpx;">
						更多保障详情
					</view>
				</view>

				<scroll-view scroll-x class="guaranteeitem-select">
					<view style="display: flex;">
						<view class="select-item">
							<view class="select-item-top">300万保额</view>
							<view class="select-item-btm">72元起/年</view>
						</view>
						<view class="select-item">
							<view class="select-item-top">300万保额</view>
							<view class="select-item-btm">72元起/年</view>
						</view>
						<view class="select-item">
							<view class="select-item-top">300万保额</view>
							<view class="select-item-btm">72元起/年</view>
						</view>
					</view>
				</scroll-view>

				<view class="cont-btm-text" v-for="item in contlist" :key="item.name">
					<view class="cont-btm-text-left">
						{{item.name}}
					</view>
					<view class="cont-btm-text-left">
						{{item.price}}
					</view>
				</view>

			</view>

			<view class="claimsitem">
				<view style="font-size: 36rpx;color: #2a2d32;margin-bottom: 30rpx;">
					理赔流程
				</view>
				<view style="padding: 40rpx 40rpx 0rpx 40rpx;">
					<view class="claimsitem-cont" v-for="item in claimsitemlist" :key="item.num">
						<view class="claimsitem-title">
							<view class="claimsitem-index">{{item.num}}</view>
							<view class="claimsitem-name">
								{{item.name}}
							</view>
							<view class="claimsitem-text">
								{{item.text}}
							</view>
						</view>
					</view>
				</view>
			</view>

			<view class="tobuy" @click="tobuy">
				立即投保
			</view>

		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				contlist: [{
						name: "意外身故保险金",
						price: "5万"
					},
					{
						name: "意外身残保险金",
						price: "10万"
					},
					{
						name: "意外医疗",
						price: "5万"
					},
					{
						name: "意外住院津贴",
						price: "60元/天"
					},
					{
						name: "意外救护车费用补偿",
						price: "200万"
					}
				],
				claimsitemlist: [{
						num: 1,
						name: "报案",
						text: "在安卓应用市场或APP Store，搜索下载众安保险APP。"
					},
					{
						num: 2,
						name: "材料提交",
						text: "使用在线理赔申请服务，根据指引提交理赔申请材料。"
					},
					{
						num: 3,
						name: "审核材料",
						text: "保险公司及时进行审核、调查、反馈结果，并根据情况通知寄送纸质材料。"
					},
					{
						num: 4,
						name: "获得理赔",
						text: "对属于保险责任的，保险公司讲理赔金直接转账至保险人/受益人名下的指定账户。"
					},
				]
			}
		},
		methods: {
			tobuy(){
				uni.navigateTo({
					url:'../inputinsurance/inputinsurance'
				})
			}
		}
	}
</script>

<style>
	.main {
		margin: 0 auto;
		min-height: 10rpx;
		width: 670rpx;
	}

	.headitem {
		margin: 12rpx 0rpx;
		padding: 24rpx;
		background-color: #ffffff;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(225, 225, 225, 0.5);
		border-radius: 12rpx;
	}

	.headitem-title {
		font-size: 32rpx;
		color: #2e3033;
	}

	.headitem-name {
		font-size: 24rpx;
		color: #cacaca;
		padding: 16rpx 0rpx;
		border-bottom: 1rpx solid #caca;
	}

	.headitem-price {
		display: flex;
		padding: 24rpx;
		flex-wrap: nowrap;
	}

	.headitem-price-item {
		text-align: center;
		font-size: 56rpx;
		color: #e74d45;
		flex: 1;
	}

	.additem {
		margin: 12rpx 0rpx;
		padding: 24rpx;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(225, 225, 225, 0.5);
		display: flex;
		justify-content: space-between;

	}

	.guaranteeitem {
		margin: 12rpx 0rpx;
		padding: 24rpx;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(225, 225, 225, 0.5);
	}

	.guaranteeitem-text {
		display: flex;
		justify-content: space-between;
		margin: 12rpx 0rpx;
	}

	.guaranteeitem-select {
		display: flex;
		width: 100%;
		height: 122rpx;
		overflow: hidden;
	}

	.select-item {
		flex-shrink: 0;
		width: 268rpx;
		height: 122rpx;
		background-color: #e2eafa;
		border-radius: 12rpx;
		padding: 13rpx 0rpx;
		margin-right: 13rpx;
	}

	.select-item-top {
		text-align: center;
		font-size: 40rpx;
		color: #2A2D32;
	}

	.select-item-btm {
		text-align: center;
		color: #676b72;
	}

	.cont-btm-text {
		margin: 16rpx 0rpx;
		display: flex;
		justify-content: space-between;
	}

	.cont-btm-text-left {
		font-size: 24rpx;
		color: #676767;
	}

	.cont-btm-text-right {
		font-size: 20rpx;
		color: #bcc2cc;
		font-weight: 600;
	}

	.claimsitem {
		margin: 12rpx 0rpx;
		padding: 24rpx;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(225, 225, 225, 0.5);
	}

	.claimsitem-index {
		width: 30rpx;
		height: 30rpx;
		line-height: 30rpx;
		text-align: center;
		font-size: 24rpx;
		color: #FFFFFF;
		background-color: #255af6;
		border-radius: 24rpx;
		margin-right: 30rpx;
	}

	.claimsitem-cont {
		margin-bottom: 20rpx
	}

	.claimsitem-title {
		display: flex;
		flex-wrap: wrap;
	}

	.claimsitem-name {
		margin-top: 0rpx;
		margin-bottom: auto;
		font-size: 28rpx;
		font-weight: 800;
		color: #333;
		line-height: 30rpx;
	}

	.claimsitem-text {
		margin-left: 60rpx;
		margin-top: 8rpx;
		width: 466rpx;
		height: 74rpx;
		font-family: PingFang SC;
		font-size: 24rpx;
		font-weight: normal;
		font-stretch: normal;
		line-height: 34rpx;
		letter-spacing: 0rpx;
		color: #818181;
	}

	.tobuy {
		width: 670rpx;
		height: 76rpx;
		background-color: #3775f6;
		border-radius: 12rpx;
		font-family: PingFang SC;
		font-size: 32rpx;
		font-weight: normal;
		font-stretch: normal;
		line-height: 76rpx;
		letter-spacing: 0rpx;
		color: #ffffff;
		text-align: center;
		margin-bottom: 10rpx;
	}
</style>
